package com.service;

import com.dao.UserDao;
import com.domain.UserDomain;

public class UserService {

    private UserDao userDao=new UserDao();
    public UserService(){}

    //做登录的处理
    public String login(String username, String pass) {

        //模拟数据库查询数据
        UserDomain userDomain = userDao.selectOne(username, pass);
        if (userDomain!=null){
            return "登录成功";
        }
        return "登录失败";
    }
}
